package org.lqk.pool.zk;

public interface SocketConnectionPool {
	/**
	 * 从连接池里获取一个TProtocol对象
	 * 
	 * @return
	 */
	SocketConnection borrowSocketConnection() throws Exception;

	/**
	 * 将一个TProtocol对象放回连接池
	 * 
	 * @param tProtocol
	 */
	void returnSocketConnection(SocketConnection connection);
}
